
    function addFavorite2() {
        var url = window.location;
        var title = document.title;
        var ua = navigator.userAgent.toLowerCase();
        if (ua.indexOf("360se") > -1) {
            alert("由于360浏览器功能限制，请按 Ctrl+D 手动收藏！");
        } else if (ua.indexOf("msie 8") > -1) {
            window.external.AddToFavoritesBar(url, title); //IE8
        } else if (document.all) {
            try {
                window.external.addFavorite(url, title);
            } catch (e) {
                alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!');
            }
        } else if (window.sidebar) {
            window.sidebar.addPanel(title, url, "");
        } else {
            alert('您的浏览器不支持,请按 Ctrl+D 手动收藏!');
        }
    }


        $(".banner").slide({
            titOnClassName: "cur",
            autoPlay: true,
        });
        triggerTime: 4000;
        effect: "fold";
        titCell: ".hd li";
        trigger: 'click';
		var totel = $(".banner .bd").find("li").size();
    
 
    function search(){
     var key = document.getElementById('key').value;
     location.href="search.php?key="+key;
    }


		$(".ys").slide({ targetCell: "",titOnClassName:'cur', titCell: ".yst li", mainCell: ".ys1", autoPlay: false,effect:"fold" });
	

			$(".solve").slide({ targetCell: "",titOnClassName:'cur', titCell: ".solvet li", mainCell: ".solve-big", autoPlay: false,effect:"fold" });
		

				$(".dy").slide({ targetCell: ".n_nav .more2 span",titOnClassName:'cur', titCell: ".n_nav ul li a", mainCell: ".news_nr", autoPlay: false,effect:"fade" });
			

			$(".pic").slide({ targetCell: ".nav2 .more2 span",titOnClassName:'cur', titCell: ".nav2 ul li a", mainCell: ".pic1", autoPlay: false,effect:"fade" });
			$(".pic2").slide({titCell:"",mainCell:".pic3 ul",effect:"leftLoop",autoPlay:false,vis:4,prevCell:".arr1",nextCell:".arr2",})
		

	$(".topWrap h2,.footWrap h2,.tit,.about-title,.news-title,.partner-title,.solve-title").fadeThis({speed:800});

$(window).fadeThis();

        $(function() {
            var time;
            //var winHeight = top.window.document.body.clientHeight || $(window.parent).height();
            $('.client-2').css({
                'marginTop': -($('.client-2').height() / 2)
            });
            $('#client-2 li').on({
                'mouseenter': function() {
                    var scope=this;
                    time = setTimeout(function() {
                        var divDom = $(scope).children('div');
                        var maxWidth = divDom.width();
                        $(scope).stop().animate({
                            left: 77-maxWidth
                        }, 'normal', function() {
                            var pic = $(scope).find('.my-kefu-weixin-pic');
                            if (pic.length > 0) {
                                pic.show();
                            }
                        });
                    }, 100)
                },
                'mouseleave': function() {
                    var pic = $(this).find('.my-kefu-weixin-pic');
                    var divDom = $(this).children('div');
                    var maxWidth = divDom.width();
                    if (pic.length > 0) {
                        pic.hide();
                    }
                    clearTimeout(time);
                    var divDom = $(this).children('div');
                    $(this).stop().animate({
                        left: 0
                    }, "normal", function() {});
                }
            });
            //返回顶部
            $(window).scroll(function() {
                var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
                var eltop = $("#client-2").find(".my-kefu-ftop");
                if (scrollTop > 0) {
                    eltop.show();
                } else {
                    eltop.hide();
                }
            });
            $("#client-2").find(".my-kefu-ftop").click(function() {
                var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
                if (scrollTop > 0) {
                    $("html,body").animate({
                        scrollTop: 0
                    }, "slow");
                }
            });
        });
    
